<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>项目详情</title>
	<link rel="stylesheet" th:href="@{/layui/dist/css/layui.css}"  media="all">
</head>
<body class="layui-view-body">
<div class="layui-content">
	<div class="layui-row">
		<div class="layui-col-md11">
			<form class="layui-form" lay-filter="formTestFilter2121" style="margin-top: 50px;">
				<div class="layui-form-item">
					<label class="layui-form-label">项目编号：</label>
					<div class="layui-input-inline">
						<input type="text" name="itemNo" class="layui-input" readonly="readonly" th:value="${sysItems.getItemNo()}" >
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">项目名称：</label>
					<div class="layui-input-inline">
						<input type="text" name="itemName" class="layui-input" readonly="readonly" th:value="${sysItems.getItemName()}" >
					</div>
					<label class="layui-form-label">项目类型：</label>
					<div class="layui-input-inline">
						<input type="text" name="itemType"  class="layui-input" readonly="readonly"
							   th:value="${sysItems.getItemType()} == '1' ? 'web网站'
                                : (${sysItems.getItemType()} == '2' ? 'App开发'
                                : (${sysItems.getItemType()} == '3' ? '微信公众号'
                                : (${sysItems.getItemType()} == '4' ? '小程序'
                                : (${sysItems.getItemType()} == '5' ? 'HTML应用' : '其他项目')
                                )
                                )
                                )
						">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">发布者编号：</label>
					<div class="layui-input-inline">
						<input type="text" name="userNo"  class="layui-input" readonly="readonly" th:value="${sysItems.getCodeUsers()[0].getUserNo()}">
					</div>
					<label class="layui-form-label">发布者姓名：</label>
					<div class="layui-input-inline">
						<input type="text" name="username"  class="layui-input" readonly="readonly" th:value="${sysItems.getCodeUsers()[0].getUsername()}">
					</div>
					<label class="layui-form-label">发布者Email：</label>
					<div class="layui-input-inline">
						<input type="text" name="email" class="layui-input" readonly="readonly" th:value="${sysItems.getCodeUsers()[0].getEmail()}">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">项目审核状态：</label>
					<div class="layui-input-inline">
						<input type="text" name="itemCondition"  class="layui-input" readonly="readonly"
							   th:value="${sysItems.getItemCondition()} == '1' ? '通过'
								 : (${sysItems.getItemCondition()} == '2' ? '不通过' : '未审核'
								 )
						">
					</div>
					<label class="layui-form-label">项目状态：</label>
					<div class="layui-input-inline">
						<input type="text" name="itemDid" class="layui-input" readonly="readonly"
							   th:value="${sysItems.getItemDid()} == '1' ? '正在招募中'
							     : (${sysItems.getItemDid()} == '2' ? '正在进行中' : '已完成'
							     )
						">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">项目标价：</label>
					<div class="layui-input-inline">
						<input type="text" name="money" class="layui-input" readonly="readonly" th:value="${sysItems.getMoney()}">
					</div>
					<label class="layui-form-label">项目周期：</label>
					<div class="layui-input-inline">
						<input type="text" name="day" class="layui-input" readonly="readonly" th:value="${sysItems.getDay()}">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">发布者类型：</label>
					<div class="layui-input-inline">
						<input type="text" name="developerType" class="layui-input" readonly="readonly"
							   th:value="${sysItems.getCodeUsers()[0].getDeveloperType()} == '1' ? '个人开发' : '团队开发'
						">
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" onclick="exit()" style="width: 80px;">返回</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
<script th:src="@{/layui/dist/layui.all.js}" charset="utf-8"></script>
<script th:src="@{/js/jquery.min.js}" charset="utf-8"></script>
<script type="text/javascript">
    function exit() {
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
    }
</script>
</body>
</html>
